import React from 'react';
import {Link, Switch,NavLink} from 'react-router-dom';
import {ARoutes} from "../../../route/route-children/ARoutes";
import RouterView  from '../../../route';
export const RootA = function () {
    return (
        <>
            <div>
                <NavLink to={'/a/a1'}>a1</NavLink>
            </div>

            <div>
                <NavLink to={'/a/a2'}>a2</NavLink>
            </div>
            <div>
                <NavLink to={'/a/a3'}>a3</NavLink>
            </div>

            <Switch>
                <RouterView routes={ARoutes}/>
            </Switch>
        </>
    )

};